<SCRIPT LANGUAGE="JavaScript">
function imgSize(url ,id) {
var imgObj = new Image();
var imgDiv=document.getElementById(id)
imgObj.src = url;
imgDiv.innerHTML= imgObj.width + " × " + imgObj.height;
}
function changeSize(obj, width) {
if (obj.width > width) {
obj.width=width;
}
}
</SCRIPT>
<style type="text/css">
body {
font-size: 12px;
text-align: center;
margin: 0px;
padding: 0px;
}
#pic{
margin:0 auto;
width:100%;
padding:0;
}
#pic img{
max-width:758px;
myimg:expression(
onload=changeSize(this, 758)
);
}
</style>
<div id="pic">
<img src="http://www.veryhuo.com/uploads/common/images/liehuo_1024x768_1.jpg" border="0" onload="changesize(this, 750);">
</div><br /><center>如不能显示效果，请按Ctrl+F5刷新本页，更多网页代码：<a href='http://www.veryhuo.com/' target='_blank'>http://www.veryhuo.com/</a></center>